package com.rxy.zkclient;

import org.I0Itec.zkclient.ZkClient;

public class Create_Node {
    public static void main(String[] args) {
        ZkClient zkClient = new ZkClient("192.168.31.247:2181");
        // createParents：是否要创建父节点，值为true则会递归创建节点
        zkClient.createPersistent("/rxy-zkClient/c1",true);
        System.out.println("节点递归创建完成");
    }
}
